cmake_minimum_required(VERSION 3.5.1)
project(osd-opencv-plugin)

add_compile_options(-std=c++11 -O3 -Wall)

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)

include_directories("/usr/local/lynxi/sdk/include/lyn_api/")
include_directories(../../cpp)

FILE(GLOB plugins RELATIVE ${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/src/*)
FOREACH(plugin ${plugins})
    message("[add plugin] " ${plugin})
    add_subdirectory(${plugin})
ENDFOREACH()
